﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataEditor.DataLayer;

namespace DataEditor.ViewModels
{
    public class SymbolItemViewModel : BaseViewModel
    {
        UNIT_SYMBOL _model;

        #region Constructors
        public SymbolItemViewModel(UNIT_SYMBOL model)
        {
            _model = model;
        }
        #endregion

        #region Properties

        public UNIT_SYMBOL Model
        {
            get
            {
                return _model;
            }
        }

        public int ID
        {
            get
            {
                return _model.ID;
            }
        }

        public String Symbol
        {
            get
            {
                return _model.SYMBOL;
            }
            set
            {
                _model.SYMBOL = value;
                NotifyOfPropertyChange(() => Symbol);
            }
        }
        #endregion
    }
}
